package Disizhou;

public class Digui {
    public static void main(String[] args) {
        int res;
        res=age(5);
        System.out.println("第五个人的年龄是："+res);
    }
    public static int age(int n){
        int res;
        if (n==1){
            res=10;
        }else{
            res=age(n-1)+2;
        }
        return res;
    }
}
